-- CALC_OPERATE_ARTIFACT_BONUS

-- 冈布奥事件-考古学家冈布奥
return function(eventId, para)
    local oriScore = para["ori_score"];
    local addArr = para["add_nums"];
    local score = oriScore;
    for k, v in pairs(addArr) do
        score = score + v;
    end

    local bonus = {};

    if (score < 200) then
        -- 碎片还不够，直接返回
        return bonus;
    end

    if not PetM.getMyPet(66) then
        -- 奖励冈布奥
        bonus = {3, 66, 1};
        return bonus;
    end

    local amount = 0;
    for i = 1, #addArr, 1 do

        local lastTimes = math.floor(oriScore / 100);
        oriScore = oriScore + addArr[i];
        local thisTimes = math.floor(oriScore / 100);

        if lastTimes ~= thisTimes then
            -- 奖励碎片
            amount = amount + 5;
        end
    end

    if amount > 0 then
        bonus = {1, 2066, amount};
    end

    return bonus;
end
